package com.dzl.card;

import com.dzl.base.controller.BaseController;
import com.dzl.card.pojo.query.WelfareCardMoveRecordQuery;
import com.dzl.card.pojo.vo.WelfareCardMoveRecordVo;
import com.dzl.card.service.WelfareCardMoveRecordService;
import com.dzl.util.PageUtils;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 卡转移记录(WelfareCardMoveRecord)表控制层
 *
 * @author caobucao
 * @date 2021-11-04 10:28:18
 */
@RestController
@RequestMapping("/welfareCardMoveRecord")
public class WelfareCardMoveRecordController extends BaseController {

    @Autowired
    private WelfareCardMoveRecordService service;

    /**
     * 分页查询卡转移记录
     * @date 2021/11/4 10:55
     * @author caobucao
     * @param query 查询条件
     * @return com.dzl.util.PageUtils<com.dzl.card.pojo.vo.WelfareCardMoveRecordVo>
     */
    @GetMapping("/getListPage")
    public PageUtils<WelfareCardMoveRecordVo> getListPage(WelfareCardMoveRecordQuery query) {
        PageInfo<WelfareCardMoveRecordVo> pageInfo = service.getListPage(query);
        return new PageUtils<>(pageInfo);
    }

}
